package com.ls.netty.dubborpc.customer;

import com.ls.netty.dubborpc.netty.NettyClient;
import com.ls.netty.dubborpc.publicinterface.HelloService;

public class ClientBootstrap {

    public static final String providerName = "HelloService#hello#";

    public static void main(String[] args) {

        //创建一个消费者
        NettyClient customer = new NettyClient();


        //创建代理对象
        HelloService service = (HelloService) customer.getBean(HelloService.class, providerName);

        String res = service.hello("你好dubbo__");
        System.out.println("等待结果:" + res);


    }
}
